package com.foomia.truego.types;

import com.foomia.truegoed.util.ParcelUtils;

import android.os.Parcel;
import android.os.Parcelable;

public class Post implements TruegoType,Parcelable{
	private String mUsername;
	private String mUserid;
	private String mUsericon;
	private String mStatusid;
	private String mStufftag;
	private String mStuffname;
	private String mStuffprice;
	private String mStuffdesc;
	private String mSmallpic;
	private String mMiddlepic;
	private String mLargepic;
	private String mCreateddatetime;
	
	public Post() {
    }
	
	private Post(Parcel in){
		mUsername = ParcelUtils.readStringFromParcel(in);
		mUserid = ParcelUtils.readStringFromParcel(in);
		mUsericon = ParcelUtils.readStringFromParcel(in);
		mStatusid = ParcelUtils.readStringFromParcel(in);
		mStufftag = ParcelUtils.readStringFromParcel(in);
		mStuffname = ParcelUtils.readStringFromParcel(in);
		mStuffprice = ParcelUtils.readStringFromParcel(in);
		mStuffdesc = ParcelUtils.readStringFromParcel(in);
		mSmallpic = ParcelUtils.readStringFromParcel(in);
		mMiddlepic = ParcelUtils.readStringFromParcel(in);
		mLargepic = ParcelUtils.readStringFromParcel(in);
		mCreateddatetime = ParcelUtils.readStringFromParcel(in);
	}


	public static final Parcelable.Creator<Post> CREATOR = new Parcelable.Creator<Post>(){
		public Post createFromParcel(Parcel in) {
			return new Post(in);
		}
		
		@Override
        public Post[] newArray(int size) {
            return new Post[size];
        }
	};
	
	public String getUsername() {
		return mUsername;
	}

	public void setUsername(String username) {
		mUsername = username;
	}
	    
	public String getUserid() {
        return mUserid;
    }

    public void setUserid(String userid) {
    	mUserid = userid;
    }
    
    public String getUsericon() {
        return mUsericon;
    }

    public void setUsericon(String usericon) {
    	mUsericon = usericon;
    }
    
    public String getStatusid() {
        return mStatusid;
    }

    public void setStatusid(String statusid) {
    	mStatusid = statusid;
    }
    
    public String getStufftag() {
        return mStufftag;
    }

    public void setStufftag(String stufftag) {
    	mStufftag = stufftag;
    }
    
    public String getStuffname() {
        return mStuffname;
    }

    public void setStuffname(String stuffname) {
    	mStuffname = stuffname;
    }
    
    public String getStuffprice() {
        return mStuffprice;
    }

    public void setStuffprice(String stuffprice) {
    	mStuffprice = stuffprice;
    }
    
    public String getStuffdesc() {
        return mStuffdesc;
    }

    public void setStuffdesc(String stuffdesc) {
    	mStuffdesc = stuffdesc;
    }
    
    public String getSmallpic() {
        return mSmallpic;
    }

    public void setSmallpic(String smallpic) {
    	mSmallpic = smallpic;
    }
    
    public String getMiddlepic() {
        return mMiddlepic;
    }

    public void setMiddlepic(String middlepic) {
    	mMiddlepic = middlepic;
    }
    
    public String getLargepic() {
        return mLargepic;
    }

    public void setLargepic(String largepic) {
    	mLargepic = largepic;
    }
    
    public String getCreateddatetime() {
        return mCreateddatetime;
    }

    public void setCreateddatetime(String createddatetime) {
    	mCreateddatetime = createddatetime;
    }
    
    @Override
	public void writeToParcel(Parcel out, int flags) {
    	ParcelUtils.writeStringToParcel(out, mUsername);
    	ParcelUtils.writeStringToParcel(out, mUserid);
    	ParcelUtils.writeStringToParcel(out, mUsericon);
    	ParcelUtils.writeStringToParcel(out, mStatusid);
    	ParcelUtils.writeStringToParcel(out, mStufftag);
    	ParcelUtils.writeStringToParcel(out, mStuffname);
    	ParcelUtils.writeStringToParcel(out, mStuffprice);
    	ParcelUtils.writeStringToParcel(out, mStuffdesc);
    	ParcelUtils.writeStringToParcel(out, mSmallpic);
    	ParcelUtils.writeStringToParcel(out, mMiddlepic);
    	ParcelUtils.writeStringToParcel(out, mLargepic);
    	ParcelUtils.writeStringToParcel(out, mCreateddatetime);
	}
   
    @Override
	public int describeContents() {
		return 0;
	}

}
